/**
 * @enum EPurchaseResultDetail
 */
module.exports = {
    "NoDetail": 0,
    "AVSFailure": 1,
    "InsufficientFunds": 2,
    "ContactSupport": 3,
    "Timeout": 4,
    "InvalidPackage": 5,
    "InvalidPaymentMethod": 6,
    "InvalidData": 7,
    "OthersInProgress": 8,
    "AlreadyPurchased": 9,
    "WrongPrice": 10,
    "FraudCheckFailed": 11,
    "CancelledByUser": 12,
    "RestrictedCountry": 13,
    "BadActivationCode": 14,
    "DuplicateActivationCode": 15,
    "UseOtherPaymentMethod": 16,
    "UseOtherFunctionSource": 17,
    "InvalidShippingAddress": 18,
    "RegionNotSupported": 19,
    "AcctIsBlocked": 20,
    "AcctNotVerified": 21,
    "InvalidAccount": 22,
    "StoreBillingCountryMismatch": 23,
    "DoesNotOwnRequiredApp": 24,
    "CanceledByNewTransaction": 25,
    "ForceCanceledPending": 26,
    "FailCurrencyTransProvider": 27,
    "FailedCyberCafe": 28,
    "NeedsPreApproval": 29,
    "PreApprovalDenied": 30,
    "WalletCurrencyMismatch": 31,
    "EmailNotValidated": 32,
    "ExpiredCard": 33,
    "TransactionExpired": 34,
    "WouldExceedMaxWallet": 35,
    "MustLoginPS3AppForPurchase": 36,
    "CannotShipToPOBox": 37,
    "InsufficientInventory": 38,
    "CannotGiftShippedGoods": 39,
    "CannotShipInternationally": 40,
    "BillingAgreementCancelled": 41,
    "InvalidCoupon": 42,
    "ExpiredCoupon": 43,
    "AccountLocked": 44,
    "OtherAbortableInProgress": 45,
    "ExceededSteamLimit": 46,
    "OverlappingPackagesInCart": 47,
    "NoWallet": 48,
    "NoCachedPaymentMethod": 49,
    "CannotRedeemCodeFromClient": 50,
    "PurchaseAmountNoSupportedByProvider": 51,
    "OverlappingPackagesInPendingTransaction": 52,
    "RateLimited": 53,
    "OwnsExcludedApp": 54,
    "CreditCardBinMismatchesType": 55,
    "CartValueTooHigh": 56,
    "BillingAgreementAlreadyExists": 57,
    "POSACodeNotActivated": 58,
    "CannotShipToCountry": 59,
    "HungTransactionCancelled": 60,
    "PaypalInternalError": 61,
    "UnknownGlobalCollectError": 62,
    "InvalidTaxAddress": 63,
    "PhysicalProductLimitExceeded": 64,
    "PurchaseCannotBeReplayed": 65,
    "DelayedCompletion": 66,
    "BundleTypeCannotBeGifted": 67,

    // Value-to-name mapping for convenience
    "0": "NoDetail",
    "1": "AVSFailure",
    "2": "InsufficientFunds",
    "3": "ContactSupport",
    "4": "Timeout",
    "5": "InvalidPackage",
    "6": "InvalidPaymentMethod",
    "7": "InvalidData",
    "8": "OthersInProgress",
    "9": "AlreadyPurchased",
    "10": "WrongPrice",
    "11": "FraudCheckFailed",
    "12": "CancelledByUser",
    "13": "RestrictedCountry",
    "14": "BadActivationCode",
    "15": "DuplicateActivationCode",
    "16": "UseOtherPaymentMethod",
    "17": "UseOtherFunctionSource",
    "18": "InvalidShippingAddress",
    "19": "RegionNotSupported",
    "20": "AcctIsBlocked",
    "21": "AcctNotVerified",
    "22": "InvalidAccount",
    "23": "StoreBillingCountryMismatch",
    "24": "DoesNotOwnRequiredApp",
    "25": "CanceledByNewTransaction",
    "26": "ForceCanceledPending",
    "27": "FailCurrencyTransProvider",
    "28": "FailedCyberCafe",
    "29": "NeedsPreApproval",
    "30": "PreApprovalDenied",
    "31": "WalletCurrencyMismatch",
    "32": "EmailNotValidated",
    "33": "ExpiredCard",
    "34": "TransactionExpired",
    "35": "WouldExceedMaxWallet",
    "36": "MustLoginPS3AppForPurchase",
    "37": "CannotShipToPOBox",
    "38": "InsufficientInventory",
    "39": "CannotGiftShippedGoods",
    "40": "CannotShipInternationally",
    "41": "BillingAgreementCancelled",
    "42": "InvalidCoupon",
    "43": "ExpiredCoupon",
    "44": "AccountLocked",
    "45": "OtherAbortableInProgress",
    "46": "ExceededSteamLimit",
    "47": "OverlappingPackagesInCart",
    "48": "NoWallet",
    "49": "NoCachedPaymentMethod",
    "50": "CannotRedeemCodeFromClient",
    "51": "PurchaseAmountNoSupportedByProvider",
    "52": "OverlappingPackagesInPendingTransaction",
    "53": "RateLimited",
    "54": "OwnsExcludedApp",
    "55": "CreditCardBinMismatchesType",
    "56": "CartValueTooHigh",
    "57": "BillingAgreementAlreadyExists",
    "58": "POSACodeNotActivated",
    "59": "CannotShipToCountry",
    "60": "HungTransactionCancelled",
    "61": "PaypalInternalError",
    "62": "UnknownGlobalCollectError",
    "63": "InvalidTaxAddress",
    "64": "PhysicalProductLimitExceeded",
    "65": "PurchaseCannotBeReplayed",
    "66": "DelayedCompletion",
    "67": "BundleTypeCannotBeGifted",
};
